package com.wyj.service;

import com.wyj.pojo.LoginTicket;
import com.wyj.pojo.User;

import java.util.Map;

public interface UserService {

    User getUserById(int userId);
    User getUserByEmail(String email);
    User getUserByUsername(String username);
    int updateUserStatus(int id,int status);
    Map<String,Object> register(User user);
    Map<String,Object> login(String username,String password,long expiredSeconds);
    void updateLoginTicket(String ticket);
    LoginTicket getLoginTicket(String ticket);

    int updateUserHeaderUrl(int id,String headerUrl);;


}
